import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import modules from './modules'

Vue.use(Vuex)
// 项目全局State
const state = {
  text: 'text',
  num: 1,
  gid: '',
  imgUrl: 'https://vip.gxmini.cn',
  user_id: '2b4fcbf7e92831f4fcdad95003f4ce7b135179cb',
  actionNum: 1,
  actoken: '',
  goodsList: [],
  title: '首页',
  imagesList: []
}

// store实例
const store = new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules
})

export default store